import { IPostDailyData } from '/@/types/ys/index';
//查看工作日报列表
import request from '/@/utils/request';
const getDailyList = (params: any) => {
	return request({
		url: '/usDailyWorkReport/page',
		method: 'get',
		data: params,
	});
};
//提交日报
const postDailyAction = (params: IPostDailyData) => {
	return request({
		url: '/usDailyWorkReport/add',
		method: 'post',
		data: params,
	});
};
//删除日报
const postDeleteDailyAction = (params: object = {}) => {
	return request({
		url: '/usDailyWorkReport/delete',
		method: 'post',
		data: params,
	});
};
//修改日报
const postChangeDailyAction = (params: object = {}) => {
	return request({
		url: '/usDailyWorkReport/edit',
		method: 'post',
		data: params,
	});
};
export { getDailyList, postDailyAction, postDeleteDailyAction,postChangeDailyAction };
